package Demo;

import java.util.Scanner;

public class PayService {
    //支付过程的方法
    public static void pay(Card c) {
        System.out.println("请输入当前消费的金额：");
        Scanner sc = new Scanner(System.in);
        double money = sc.nextDouble();
        c.payMoney(money);
    }
}
